package com.v5ba.server.controller;

import com.v5ba.server.service.IndexService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author yiren
 */
@Controller
@RequestMapping
public class IndexController {

    @Autowired
    private IndexService indexService;

    @RequestMapping("index")
    @ResponseBody
    public String index() {
        indexService.exec();

        return "ok";
    }
}